/**
 * @file        storage.hpp
 * @brief       Storage management.
 *
 * @author      Emre Turkay <emreturkay at gmail>
 * @date        Jul.2.2008
 */

#ifndef _STORAGE_HPP_
#define _STORAGE_HPP_

#include <string>
#include <fstream>

namespace gtd
{

    // Forward declaration.
    struct gtd;

    struct storage
    {
        storage(gtd& object);
        void load();
        void save();

    private:
        void save_todo();
        void save_done();

        gtd& object_;
        std::string todo_file_name_;
        std::string done_file_name_;
    };

} // namespace gtd

#endif // _STORAGE_HPP_
